package ua.cn.store.service;
//import java.sql.Timestamp;
import java.sql.Timestamp;
import java.util.List;

import ua.cn.store.domain.Comment;


public interface ICommentService extends IGenericService<Comment>{
	
	
	/**
	 * Find all comments by date
	 * @param date
	 * @return object Comment
	 * @throws IllegalArgumentException if parameter is <code>null</code>
	 * @throws GeneralServiceException if DB error occurs
	 */
	public List<Comment> getByDate (Timestamp timestamp)
	throws IllegalArgumentException, GeneralServiceException;
	
	/**
	 * Sort all comments by date
	 * @param List<Comment>
	 * @return sorted List<Comment>
	 * @throws IllegalArgumentException if parameter is <code>null</code>
	 * @throws GeneralServiceException if DB error occurs
	 */
	public List<Comment> getCommentByBook (Long id)
	throws IllegalArgumentException, GeneralServiceException;
	
	
}
